﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="FXDataCenter" targetNamespace="http://tempuri.org/FXDataCenter.xsd" xmlns:mstns="http://tempuri.org/FXDataCenter.xsd" xmlns="http://tempuri.org/FXDataCenter.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="FXDataCenterConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="FXDataCenterConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.ImportFXData.Properties.Settings.GlobalReference.Default.FXDataCenterConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="FXDataTableAdapter" GeneratorDataComponentClassName="FXDataTableAdapter" Name="FXData" UserDataComponentName="FXDataTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="FXDataCenterConnectionString (Settings)" DbObjectName="FXDataCenter.dbo.FXData" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[FXData] WHERE (([ID] = @Original_ID) AND ([FXProductCode] = @Original_FXProductCode) AND ([FXType] = @Original_FXType) AND ([ProcessDateTime] = @Original_ProcessDateTime) AND ([OpenPrice] = @Original_OpenPrice) AND ([HighPrice] = @Original_HighPrice) AND ([LowPrice] = @Original_LowPrice) AND ([ClosePrice] = @Original_ClosePrice) AND ([Volume] = @Original_Volume))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_FXProductCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FXProductCode" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_FXType" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FXType" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_ProcessDateTime" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="ProcessDateTime" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_OpenPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="OpenPrice" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_HighPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="HighPrice" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_LowPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="LowPrice" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_ClosePrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="ClosePrice" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Volume" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Volume" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[FXData] ([FXProductCode], [FXType], [ProcessDateTime], [OpenPrice], [HighPrice], [LowPrice], [ClosePrice], [Volume]) VALUES (@FXProductCode, @FXType, @ProcessDateTime, @OpenPrice, @HighPrice, @LowPrice, @ClosePrice, @Volume);
SELECT ID, FXProductCode, FXType, ProcessDateTime, OpenPrice, HighPrice, LowPrice, ClosePrice, Volume FROM FXData WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@FXProductCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FXProductCode" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@FXType" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FXType" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@ProcessDateTime" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="ProcessDateTime" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@OpenPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="OpenPrice" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@HighPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="HighPrice" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@LowPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="LowPrice" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@ClosePrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="ClosePrice" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Volume" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Volume" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT ID, FXProductCode, FXType, ProcessDateTime, OpenPrice, HighPrice, LowPrice, ClosePrice, Volume FROM dbo.FXData</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[FXData] SET [FXProductCode] = @FXProductCode, [FXType] = @FXType, [ProcessDateTime] = @ProcessDateTime, [OpenPrice] = @OpenPrice, [HighPrice] = @HighPrice, [LowPrice] = @LowPrice, [ClosePrice] = @ClosePrice, [Volume] = @Volume WHERE (([ID] = @Original_ID) AND ([FXProductCode] = @Original_FXProductCode) AND ([FXType] = @Original_FXType) AND ([ProcessDateTime] = @Original_ProcessDateTime) AND ([OpenPrice] = @Original_OpenPrice) AND ([HighPrice] = @Original_HighPrice) AND ([LowPrice] = @Original_LowPrice) AND ([ClosePrice] = @Original_ClosePrice) AND ([Volume] = @Original_Volume));
SELECT ID, FXProductCode, FXType, ProcessDateTime, OpenPrice, HighPrice, LowPrice, ClosePrice, Volume FROM FXData WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@FXProductCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FXProductCode" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@FXType" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FXType" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@ProcessDateTime" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="ProcessDateTime" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@OpenPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="OpenPrice" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@HighPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="HighPrice" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@LowPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="LowPrice" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@ClosePrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="ClosePrice" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Volume" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Volume" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_FXProductCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FXProductCode" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_FXType" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="FXType" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_ProcessDateTime" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="ProcessDateTime" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_OpenPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="OpenPrice" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_HighPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="HighPrice" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_LowPrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="LowPrice" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_ClosePrice" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="ClosePrice" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Volume" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Volume" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="FXProductCode" DataSetColumn="FXProductCode" />
              <Mapping SourceColumn="FXType" DataSetColumn="FXType" />
              <Mapping SourceColumn="ProcessDateTime" DataSetColumn="ProcessDateTime" />
              <Mapping SourceColumn="OpenPrice" DataSetColumn="OpenPrice" />
              <Mapping SourceColumn="HighPrice" DataSetColumn="HighPrice" />
              <Mapping SourceColumn="LowPrice" DataSetColumn="LowPrice" />
              <Mapping SourceColumn="ClosePrice" DataSetColumn="ClosePrice" />
              <Mapping SourceColumn="Volume" DataSetColumn="Volume" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="FXDataCenterConnectionString (Settings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="DeleteQuery" Modifier="Public" Name="DeleteQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="DeleteQuery">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>DELETE FROM [dbo].[FXData] WHERE (([FXProductCode] = @Original_FXProductCode) AND ([FXType] = @Original_FXType) )</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="Original_FXProductCode" ColumnName="FXProductCode" DataSourceName="FXDataCenter.dbo.FXData" DataTypeServer="nvarchar(10)" DbType="String" Direction="Input" ParameterName="@Original_FXProductCode" Precision="0" ProviderType="NVarChar" Scale="0" Size="10" SourceColumn="FXProductCode" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="Original_FXType" ColumnName="FXType" DataSourceName="FXDataCenter.dbo.FXData" DataTypeServer="nvarchar(5)" DbType="String" Direction="Input" ParameterName="@Original_FXType" Precision="0" ProviderType="NVarChar" Scale="0" Size="5" SourceColumn="FXType" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="FXDataCenter" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="FXDataCenter" msprop:Generator_UserDSName="FXDataCenter">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="FXData" msprop:Generator_TableClassName="FXDataDataTable" msprop:Generator_TableVarName="tableFXData" msprop:Generator_TablePropName="FXData" msprop:Generator_RowDeletingName="FXDataRowDeleting" msprop:Generator_UserTableName="FXData" msprop:Generator_RowChangingName="FXDataRowChanging" msprop:Generator_RowEvHandlerName="FXDataRowChangeEventHandler" msprop:Generator_RowDeletedName="FXDataRowDeleted" msprop:Generator_RowEvArgName="FXDataRowChangeEvent" msprop:Generator_RowChangedName="FXDataRowChanged" msprop:Generator_RowClassName="FXDataRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="FXProductCode" msprop:Generator_ColumnVarNameInTable="columnFXProductCode" msprop:Generator_ColumnPropNameInRow="FXProductCode" msprop:Generator_ColumnPropNameInTable="FXProductCodeColumn" msprop:Generator_UserColumnName="FXProductCode">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="10" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="FXType" msprop:Generator_ColumnVarNameInTable="columnFXType" msprop:Generator_ColumnPropNameInRow="FXType" msprop:Generator_ColumnPropNameInTable="FXTypeColumn" msprop:Generator_UserColumnName="FXType">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="5" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ProcessDateTime" msprop:Generator_ColumnVarNameInTable="columnProcessDateTime" msprop:Generator_ColumnPropNameInRow="ProcessDateTime" msprop:Generator_ColumnPropNameInTable="ProcessDateTimeColumn" msprop:Generator_UserColumnName="ProcessDateTime" type="xs:dateTime" />
              <xs:element name="OpenPrice" msprop:Generator_ColumnVarNameInTable="columnOpenPrice" msprop:Generator_ColumnPropNameInRow="OpenPrice" msprop:Generator_ColumnPropNameInTable="OpenPriceColumn" msprop:Generator_UserColumnName="OpenPrice" type="xs:double" />
              <xs:element name="HighPrice" msprop:Generator_ColumnVarNameInTable="columnHighPrice" msprop:Generator_ColumnPropNameInRow="HighPrice" msprop:Generator_ColumnPropNameInTable="HighPriceColumn" msprop:Generator_UserColumnName="HighPrice" type="xs:double" />
              <xs:element name="LowPrice" msprop:Generator_ColumnVarNameInTable="columnLowPrice" msprop:Generator_ColumnPropNameInRow="LowPrice" msprop:Generator_ColumnPropNameInTable="LowPriceColumn" msprop:Generator_UserColumnName="LowPrice" type="xs:double" />
              <xs:element name="ClosePrice" msprop:Generator_ColumnVarNameInTable="columnClosePrice" msprop:Generator_ColumnPropNameInRow="ClosePrice" msprop:Generator_ColumnPropNameInTable="ClosePriceColumn" msprop:Generator_UserColumnName="ClosePrice" type="xs:double" />
              <xs:element name="Volume" msprop:Generator_ColumnVarNameInTable="columnVolume" msprop:Generator_ColumnPropNameInRow="Volume" msprop:Generator_ColumnPropNameInTable="VolumeColumn" msprop:Generator_UserColumnName="Volume" type="xs:int" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:FXData" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
  </xs:element>
</xs:schema>